
		function getContentSize() {
            var wh = document.documentElement.clientHeight;  //clientHeight内容可视区域的高度
        if(wh<630)
        {
        	$("#title01").css("width","38%");
        	$("#nav1").css("width","20%");
        }
           var eh = document.getElementById("home_hxr_li").offsetHeight; //获取id=home_hxr_li现在的高度
              eh1 = eh*2 + 34;
              toph = wh -eh1
              if(toph <230)
             {
             	ch = (wh - eh -24) + "px"; 
             }
             else{
             	ch = (wh - eh*2 -24) + "px";
             	$(".title01").css("width","40%");
             	$(".nav").css("width","20%");
             }
             
            document.getElementById( "header" ).style.height = ch;  //header高度
            document.getElementById( "header_bg" ).style.height = ch;  //header_bg高度
             var title01 = document.getElementById("title01").offsetHeight;
             var nav1 = document.getElementById("nav1").offsetHeight;
             title011 = -(title01/2+10) +"px";
             nav11 = -nav1/2 +"px";
             document.getElementById( "title01" ).style.marginTop = title011;
             document.getElementById( "nav1" ).style.marginTop = nav11;    
            
 }
        window.onload = getContentSize; //页面加载时调用getContentSize()
        window.onresize = getContentSize; //当改变窗口大小时会出发getContentSize()

        
       
